package Logic;
import Dao.CurriculumDAO;
import Model.CurriculumBean;
 
//业务逻辑层
public class CurriculumLogic{    
    
    // 添加新的教练
    public boolean addCurriculum(CurriculumBean curriculum){
        boolean result = false;
        try{
        	CurriculumDAO curriculumdao = new CurriculumDAO();
        	curriculumdao.insertCurriculum(curriculum);
            result = true;
        }catch (Exception e){
            e.getMessage();
            result = false;
        }
        return result;
    }  
}